package edu.cdnu.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 数据库homework表的 映射类
 * 
 * @author ASUS AsingZ
 */
@TableName("homework")
public class HomeworkPojo {
	
	@TableId
	private Integer id;
	/**
	 * 标题
	 */
	private String title;
	/**
	 * 作业内容
	 */
	private String content;
	/**
	 * 开始时间
	 */
	private Date startTime;
	/**
	 * 截止时间
	 */
	private Date endTime;
	/**
	 * 评分方式;0-百分制 1-等级制
	 */
	private Integer scoreWay;
	/**
	 * 所属课程id
	 */
	private Integer courseId;
	/**
	 * 所属班级id
	 */
	private Integer classId;
	/**
	 * 发布作业的老师id
	 */
	private Integer teacherId;
	/**
	 * 附件
	 */
	private String appendix;
	
	
	public HomeworkPojo() {
		super();
	}


	public HomeworkPojo(Integer id, String title, String content, Date startTime, Date endTime, Integer scoreWay,
			Integer courseId, Integer classId, Integer teacherId, String appendix) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
		this.startTime = startTime;
		this.endTime = endTime;
		this.scoreWay = scoreWay;
		this.courseId = courseId;
		this.classId = classId;
		this.teacherId = teacherId;
		this.appendix = appendix;
	}


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public String getTitle() {
		return title;
	}


	public void setTitle(String title) {
		this.title = title;
	}


	public String getContent() {
		return content;
	}


	public void setContent(String content) {
		this.content = content;
	}


	public Date getStartTime() {
		return startTime;
	}


	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}


	public Date getEndTime() {
		return endTime;
	}


	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}


	public Integer getScoreWay() {
		return scoreWay;
	}


	public void setScoreWay(Integer scoreWay) {
		this.scoreWay = scoreWay;
	}


	public Integer getCourseId() {
		return courseId;
	}


	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}


	public Integer getClassId() {
		return classId;
	}


	public void setClassId(Integer classId) {
		this.classId = classId;
	}


	public Integer getTeacherId() {
		return teacherId;
	}


	public void setTeacherId(Integer teacherId) {
		this.teacherId = teacherId;
	}


	public String getAppendix() {
		return appendix;
	}


	public void setAppendix(String appendix) {
		this.appendix = appendix;
	}


	@Override
	public String toString() {
		return "HomeworkPojo [id=" + id + ", title=" + title + ", content=" + content + ", startTime=" + startTime
				+ ", endTime=" + endTime + ", scoreWay=" + scoreWay + ", courseId=" + courseId + ", classId=" + classId
				+ ", teacherId=" + teacherId + ", appendix=" + appendix + "]";
	}
}
